package com.tjbaobao.videoplayol.utils;

import android.content.Context;

import com.google.gson.Gson;
import com.tjbaobao.videoplayol.message.request.BaseRequest;
import com.tjbaobao.videoplayol.message.response.BaseResponse;

/**
 * Created by TJbaobao on 2017/12/1.
 */

public abstract class SendDataTask<Request extends BaseRequest> extends BaseAsyncTask<Request,BaseResponse> {
    public SendDataTask(Context context, Request request) {
        super(context,request);
    }

    @Override
    protected BaseResponse getResponse(String resultStr) {
        return new Gson().fromJson(resultStr,BaseResponse.class);
    }

}
